package com.content.management.util.enums;

import com.content.management.exception.BaseEnum;
import lombok.AllArgsConstructor;

/**
 * @author xinghu
 * @version 1.0
 * @date 2020/4/4 7:09 下午
 */
@AllArgsConstructor
public enum ResultCode implements BaseEnum {
	/**
	 * 返回码
	 */
	SERVER_ERROR(500, "服务器异常"), UPDATE_ERROR(100, "修改失败"), SAVE_ERROR(100, "保存失败");

	private Integer code;
	private String desc;

	@Override
	public Integer getCode() {
		return this.code;
	}

	@Override
	public String getDesc() {
		return this.desc;
	}
}
